﻿<!DOCTYPE html>
<html lang="en">
<#include "../common/common-head.html"/>
<body class="gray-bg top-navigation">
<div id="wrapper">
    <div id="page-wrapper" class="gray-bg">
    <#include "../common/common-menu.html">
        <div class="wrapper wrapper-content">
            <div class="row white-bg" style="padding: 18px 0">
                <div class="col-xs-12">
                    <div class="form-search">
                        <form role="form" class="form-inline clearfix" id="form" action="">
                            <div class="input-group">
                                <span class="input-group-addon">积分</span>
                                <input name="startjf" class="form-control  col-xs-4" type="number"
                                       value="${startjf!}" >
                                <span class="input-group-addon">至</span>
                                <input name="endjf" class="form-control col-xs-4" type="number"
                                       value="${endjf!}" >
                            </div>
                        <@search labels=["会员名","会员编号","联系电话","固话","身份证号码","生日月份","客服","店铺筛选"] names=["name","no","phone","mobile","card","month","kefu","username"] isEnd=true></@search>
                            <div class="input-group ">
                                <button name="export" class="btn btn-primary" style="margin: 6px">
                                    导出
                                </button>
                            </div>
                        </form>
                        <div class="form-tool btn-group">
                            <a class="btn btn-primary" href="/member/add">添加</a>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table table-striped table-bordered table-hover">
                            <thead>
                            <tr>
                            <@tableHead names=["会员编号","会员名","联系方式","电话","身份证","生日","性别","积分","添加时间","分店名","客服","操作"]></@tableHead>
                            </tr>
                            </thead>
                            <tbody>
                            <#list pageInfo.list as item>
                            <tr>
                                <@tableBody model=item propMap={"no":"","name":"","phone":"","mobile":"","card":"","birthday":"","sex":"","score":"#0","addtime":"yyyy-MM-dd HH:mm:ss","username":"","kefu":""}></@tableBody>
                                <td>
                                    <#if sessionAdmin.type == 'admin'>
                                    <a href="${basePath}/member/detail/${item.id}">修改会员</a>
                                    </#if>
                                    <a href="${basePath}/member/scoreLog/${item.id}">积分详情</a>
                                </td>
                            </tr>
                            </#list>
                            </tbody>
                        </table>
                    <#include "../common/table-page.html"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

